package com.xlh.openai.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

	/**
 * 
 * 
 * @author 1280251739@qq.com
 * @email sunlightcs@gmail.com
 * @date 2023-04-07 09:10:09
 */
@Data
@TableName("chat_records")
@ApiModel("ChatRecordsEntity")
@Accessors(chain = true)
public class ChatRecordsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	@ApiModelProperty("主键值")
	private Integer id;

	@ApiModelProperty("会话ID")
	private String conversationId;

	@ApiModelProperty("用户表ID")
	private Integer userId;

	@ApiModelProperty("问题")
	private String question;

	@ApiModelProperty("答案")
	private String answer;

	@ApiModelProperty("花费token数量")
	private Long tokens;

	@ApiModelProperty("发送时间")
	private Date sendTime;

}
